//
//  HUD.h
//  bit101
//
//  Created by Greg Dunn on 9/2/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "SSHUDComponent.h";
#import "SSHUDButtonComponent.h";
#import "SSHUDTimerComponent.h";
#import "SSOptionsLayer.h"

#import "SSVector3D.h"

typedef enum tagPaddleState {
	jsBaseTouched,
	jsBaseUntouched
} leftJSState;


@interface SSHUD : CCLayer {
	
	SSHUDComponent *scoreBoard;
	
	SSHUDComponent *healthBar;

	SSHUDComponent *energyBar;
	
	SSHUDButtonComponent *pauseButton;
	
	SSHUDTimerComponent *scoreTimer;
	
	SSOptionsLayer *optionsLayer;
	
	//Joystick *joyStick;
//	
//	CGRect joyStickRect;
//
//@private
// leftJSState state;
}


- (void)updateHealth:(int)value;

- (void)addScore:(int)value;

- (void)quitGame:(id)sender;

- (void)pauseLevel:(id)sender;
- (void)unpauseLevel:(id)sender;

- (void)quitLevel;
- (void)restartLevel;

//Touch Controls
-(BOOL)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(BOOL)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

@end
